#pragma once
#include "base\Service.h"
#include "dxstdafx.h"
#include <vector>

class SimpleHighscoreService {

struct Score {
	uint32 level;
	uint32 mode;
	uint32 timer;
	uint32 points;
};

typedef std::vector<Score> Scores;

public:
	SimpleHighscoreService() : m_TotalScores(0) {}
	~SimpleHighscoreService() {}
	void readHighscores();
	void saveHighscores();
	uint32 getScore(uint32 level,uint32 timer);
	void setScore(uint32 score,uint32 level,uint32 timer);	
	void initialize();
private:
	int m_TotalScores;
	Scores m_Scores;
};

